﻿using System.Data.SqlClient;

namespace ExtremeSwank.Authentication.OpenID.Persistence
{
    /// <summary>
    /// Manages associations with OpenID Providers, uses SQL Server for persistence.
    /// </summary>
    public sealed class SqlAssociationManager : DbAssociationManager
    {
        /// <summary>
        /// Creates a new SqlAssociationManager instance.
        /// </summary>
        /// <param name="connectionString">SQL Server connection string.</param>
        /// <param name="tablenamePrefix">Table name prefix.</param>
        public SqlAssociationManager(string connectionString, string tablenamePrefix)
        {
            _conn = new SqlConnection(connectionString);
            _tablePrefix = tablenamePrefix;
        }
    }
}
